<%@ page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<script type="text/javascript" src="resources/style/scripts/ValidationLogin.js"></script>

<div class="login">
	<h1>
		<spring:message code="content.login" text="default text" />
	</h1>
	
	<form name="form" action="<c:url value="/j_spring_security_check"></c:url>" method="post">
		<input  id="j_username" name="j_username" size="20" maxlength="50" type="text" placeholder="<spring:message code="content.loginform.username" text="default text" />" AUTOCOMPLETE="off"/>
		<div class="alert alert-danger" id="errorUsername" style="display: none;" ><spring:message code="name.required" text="default text" /></div>
		<input  id="j_password" name="j_password" size="20" maxlength="50" type="password" placeholder="<spring:message code="content.loginform.password" text="default text" />" AUTOCOMPLETE="off" />
		<div class="alert alert-danger" id="errorPassword" style="display: none;"><spring:message code="password.required" text="default text" /></div>
		<input  onclick="validate()" type="submit" value="<spring:message code="content.button.Enter" text="default text" />" />
	</form>
</div>